<?php

/*
 * Create by Indonesian Brain Solutions
 * E-mail : cs@mesinit.com
 * Programmer : sony@sonywibisono.com
 */
if (!defined('__BACKEND__'))
    die("you cannot directly access this page");

global $action,$user_id,$login_status,$is_admin,$mod;
_showMenuHeader();

function add(){
    echo "Add Record";
}
function edit(){
    global $db,$id;
    //$sql="select * from";
    //$row=$db->fetch_row($sql);
    echo "Edit Record";
}
function add_process(){
    global $db,$id;
    echo "Add Process Record";
}
function edit_process(){
    global $db,$id;
    echo "Edit Process Record";
}
function delete_process(){
    global $db,$id;
    echo "Delete Process Record";
}
function __default(){
    global $db,$page,$sortby,$sortorder,$mod;
    echo "<h2>Record List</h2>
        <div id=\"caption_table\"><a href=\"?mod=$mod&action=add\">Add New</a></div>";
}
switch($action){
    case 'add':
        add();
        break;
    case 'edit':
        edit();
        break;
    case 'add_process':
        add_process();
        break;
    case 'edit_process':
        edit_process();
        break;
    case 'delete':
        delete_process();
        break;
    default:
        __default();
}
?>